<template>
  <div>
    <swipertop></swipertop>
    <ThreeItem :detail="data"></ThreeItem>
    <swiper></swiper>

    <selectmy></selectmy>
    <!-- Your template -->
    <div class="container">
      <slider :detail="data.card" style="width: 100%"> </slider>
    </div>
  </div>
</template>
<script>
export default {
  layout: 'blog',
  // page component definitions
  async asyncData({ isDev, $axios }) {
    let { data } = await $axios.post('/api/getindex')
    console.log('首页新闻', data)
    return {
      data: data.data,
    }
  },
}
</script>
<style></style>
